package cn.sw.system.onemany.agg.vo;

import cn.sw.system.onemany.agg.zhujie.Operator;
import cn.sw.system.onemany.agg.zhujie.QueryCondition;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AVoQuery {

    @QueryCondition(operator = Operator.LIKE, column = "title")
    private String title;

    @QueryCondition(operator = Operator.EQ, column = "content")
    private String content;

    @QueryCondition(operator = Operator.GT, column = "view_count")
    private Integer viewCount;

    @QueryCondition(operator = Operator.LT, column = "like_count")
    private Integer likeCount;

    @QueryCondition(operator = Operator.NE, column = "author")
    private String author;

    @QueryCondition(operator = Operator.IN, column = "tag")
    private List<String> tags;

    @QueryCondition(operator = Operator.IS_NULL, column = "remark")
    private String remark;

    @QueryCondition(operator = Operator.NOT_NULL, column = "published")
    private String published;
}
